Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@jimp/plugin-crop
Advanced tools
Crops the image at a given point to a give size
import jimp from 'jimp';
async function main() {
const image = await jimp.read('test/image.png');
image.crop(150, 150);
}
main();
AutoCrop same color borders from this image
_ @param {number} tolerance (optional): a percent value of tolerance for pixels color difference (default: 0.0002%) _ @param {boolean} cropOnlyFrames (optional): flag to crop only real frames: all 4 sides of the image must have some border (default: true)
import jimp from 'jimp';
async function main() {
const image = await jimp.read('test/image.png');
image.autocrop();
}
main();
FAQs
Unknown package
The npm package @jimp/plugin-crop receives a total of 981,408 weekly downloads. As such, @jimp/plugin-crop popularity was classified as popular.
We found that @jimp/plugin-crop demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.